<?php
$this->pageTitle = 'Manage backend users';
$this->menu = array(
    array('label' => Yii::t('app', 'Update Profile'), 'url' => array('myAccount')),
);
?>

<?php if (Yii::app()->user->hasFlash('updateProfile')): ?>

    <div class="alert-success">
        <?php echo Yii::app()->user->getFlash('updateProfile'); ?>
    </div>

<?php endif; ?>
<?php
$this->beginWidget('zii.widgets.CPortlet', array(
    'title' => 'View' . TblBackendUser::getLoginUserName($modelUserProfile),
));
?>

<table class="table table-striped table-hover table-bordered table-condensed">
    <tbody>
        <tr>
            <td class="tdleft">First name</td>
            <td><?php echo $modelUserProfile->first_name; ?></td>
        </tr>
        <tr>
            <td class="tdleft">Last name</td>
            <td><?php echo $modelUserProfile->last_name; ?></td>
        </tr>
        <tr>
            <td class="tdleft">Email Address</td>
            <td><?php echo $model->email; ?></td>
        </tr>
        <tr>
            <td class="tdleft">Phone No</td>
            <td><?php echo $modelUserProfile->phone; ?></td>
        </tr>
        <tr>
            <td class="tdleft">Date of Birth</td>
            <td><?php echo $modelUserProfile->date_of_birth; ?></td>
        </tr>
        <tr>
            <td class="tdleft">Photo</td>
            <td>  <div style="width: 200px;border: 1px solid;"><?php echo '<img src="' . baseUrl() . '../../' . getUploadDirBackend() . $modelUserProfile->user_id . '/profile/thumb/' . $modelUserProfile->photo . '">'; ?></div></td>
        </tr>
        <tr>
            <td class="tdleft">Address line1</td>
            <td><?php echo $modelUserProfile->address_line1; ?></td>
        </tr>
        <tr>
            <td class="tdleft">Address line2</td>
            <td><?php echo $modelUserProfile->address_line2; ?></td>
        </tr>
        <tr>
            <td class="tdleft">State</td>
            <td><?php echo $modelUserProfile->street; ?></td>
        </tr>
        <tr>
            <td class="tdleft">Country</td>
            <td><?php echo $modelUserProfile->zip_code; ?></td>
        </tr>
        <tr>
            <td class="tdleft">Zip Code</td>
            <td><?php echo $modelUserProfile->zip_code; ?></td>
        </tr>
        <tr>
            <td class="tdleft">Create Profile</td>
            <td><?php echo date('Y-m-d', $model->createtime); ?></td>
        </tr>
        <tr>
            <td class="tdleft">Update Profile</td>
            <td><?php echo date('Y-m-d', $model->update_time); ?></td>
        </tr>
    </tbody>

</table>
<?php
$this->endWidget();
?>

<style>
    .tdleft
    { width: 20%;}
</style>